package com.changgou.file.util;

import com.alibaba.fastjson.JSONObject;
import com.changgou.file.po.Student;

public class ToJson {


    public static void main(String[] args) {
        String objectStr="{\"name\":\"fanggaogen\",\"age\":\"24\",\"address\":\"nanjin\"}";
        Student student = (Student) JSONObject.parseObject(objectStr,Student.class);
        System.out.println(student);
    }
}
